<ui:composition template="/pages/faces/ui/layout/ces_template.xhtml"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:composite="http://java.sun.com/jsf/composite">

	<ui:define name="pageTitle">
		<h:outputText value="#{msg.courses}" />
	</ui:define>

	<ui:define name="pageBody">
		<h:form>
			<h:panelGrid columns="2">
				<h:outputText value="#{msg.course_presentation}" />
				<p:selectOneButton value="#{feedbackFormBean.courseAssessment.coursePresentation}">
					<f:selectItem itemLabel="#{msg.grade_0}" itemValue="1" />
					<f:selectItem itemLabel="#{msg.grade_1}" itemValue="2" />
					<f:selectItem itemLabel="#{msg.grade_2}" itemValue="3" />
					<f:selectItem itemLabel="#{msg.grade_3}" itemValue="4" />
					<f:selectItem itemLabel="#{msg.grade_4}" itemValue="5" />
				</p:selectOneButton>

				<h:outputText value="#{msg.course_understanding}" />
				<p:selectOneButton value="#{feedbackFormBean.courseAssessment.courseUnderstanding}">
					<f:selectItem itemLabel="#{msg.grade_0}" itemValue="1" />
					<f:selectItem itemLabel="#{msg.grade_1}" itemValue="2" />
					<f:selectItem itemLabel="#{msg.grade_2}" itemValue="3" />
					<f:selectItem itemLabel="#{msg.grade_3}" itemValue="4" />
					<f:selectItem itemLabel="#{msg.grade_4}" itemValue="5" />
				</p:selectOneButton>

				<h:outputText value="#{msg.course_attitude}" />
				<p:selectOneButton value="#{feedbackFormBean.courseAssessment.courseAttitude}">
					<f:selectItem itemLabel="#{msg.grade_0}" itemValue="1" />
					<f:selectItem itemLabel="#{msg.grade_1}" itemValue="2" />
					<f:selectItem itemLabel="#{msg.grade_2}" itemValue="3" />
					<f:selectItem itemLabel="#{msg.grade_3}" itemValue="4" />
					<f:selectItem itemLabel="#{msg.grade_4}" itemValue="5" />
				</p:selectOneButton>

				<h:outputText value="#{msg.students_attitude}" />
				<p:selectOneButton value="#{feedbackFormBean.courseAssessment.studentsAttitude}">
					<f:selectItem itemLabel="#{msg.grade_0}" itemValue="1" />
					<f:selectItem itemLabel="#{msg.grade_1}" itemValue="2" />
					<f:selectItem itemLabel="#{msg.grade_2}" itemValue="3" />
					<f:selectItem itemLabel="#{msg.grade_3}" itemValue="4" />
					<f:selectItem itemLabel="#{msg.grade_4}" itemValue="5" />
				</p:selectOneButton>

				<h:outputText value="#{msg.assessment_correctness}" />
				<p:selectOneButton value="#{feedbackFormBean.courseAssessment.assessmentCorrectness}">
					<f:selectItem itemLabel="#{msg.grade_0}" itemValue="1" />
					<f:selectItem itemLabel="#{msg.grade_1}" itemValue="2" />
					<f:selectItem itemLabel="#{msg.grade_2}" itemValue="3" />
					<f:selectItem itemLabel="#{msg.grade_3}" itemValue="4" />
					<f:selectItem itemLabel="#{msg.grade_4}" itemValue="5" />
				</p:selectOneButton>

				<h:outputText value="#{msg.course_organization}" />
				<p:selectOneButton value="#{feedbackFormBean.courseAssessment.courseOrganization}">
					<f:selectItem itemLabel="#{msg.grade_0}" itemValue="1" />
					<f:selectItem itemLabel="#{msg.grade_1}" itemValue="2" />
					<f:selectItem itemLabel="#{msg.grade_2}" itemValue="3" />
					<f:selectItem itemLabel="#{msg.grade_3}" itemValue="4" />
					<f:selectItem itemLabel="#{msg.grade_4}" itemValue="5" />
				</p:selectOneButton>

				<h:outputText value="#{msg.course_usefullness}" />
				<p:selectOneButton value="#{feedbackFormBean.courseAssessment.courseUsefullness}">
					<f:selectItem itemLabel="#{msg.grade_0}" itemValue="1" />
					<f:selectItem itemLabel="#{msg.grade_1}" itemValue="2" />
					<f:selectItem itemLabel="#{msg.grade_2}" itemValue="3" />
					<f:selectItem itemLabel="#{msg.grade_3}" itemValue="4" />
					<f:selectItem itemLabel="#{msg.grade_4}" itemValue="5" />
				</p:selectOneButton>

				<h:outputText value="#{msg.course_in_plan}" />
				<p:selectOneButton value="#{feedbackFormBean.courseAssessment.courseInPlan}">
					<f:selectItem itemLabel="#{msg.grade_0}" itemValue="1" />
					<f:selectItem itemLabel="#{msg.grade_1}" itemValue="2" />
					<f:selectItem itemLabel="#{msg.grade_2}" itemValue="3" />
					<f:selectItem itemLabel="#{msg.grade_3}" itemValue="4" />
					<f:selectItem itemLabel="#{msg.grade_4}" itemValue="5" />
				</p:selectOneButton>

				<h:outputText value="#{msg.course_difficulty}" />
				<p:selectOneButton value="#{feedbackFormBean.courseAssessment.courseDifficulty}">
					<f:selectItem itemLabel="#{msg.grade_0}" itemValue="1" />
					<f:selectItem itemLabel="#{msg.grade_1}" itemValue="2" />
					<f:selectItem itemLabel="#{msg.grade_2}" itemValue="3" />
					<f:selectItem itemLabel="#{msg.grade_3}" itemValue="4" />
					<f:selectItem itemLabel="#{msg.grade_4}" itemValue="5" />
				</p:selectOneButton>

				<h:outputText value="#{msg.course_engagements}" />
				<p:selectOneButton value="#{feedbackFormBean.courseAssessment.courseEngagements}">
					<f:selectItem itemLabel="#{msg.grade_0}" itemValue="1" />
					<f:selectItem itemLabel="#{msg.grade_1}" itemValue="2" />
					<f:selectItem itemLabel="#{msg.grade_2}" itemValue="3" />
					<f:selectItem itemLabel="#{msg.grade_3}" itemValue="4" />
					<f:selectItem itemLabel="#{msg.grade_4}" itemValue="5" />
				</p:selectOneButton>

			</h:panelGrid>

			<p:commandButton value="#{msg.submit}"
				actionListener="#{feedbackFormBean.saveCourseFeedbackForm}" type="submit" ajax="false" />
		</h:form>
	</ui:define>

</ui:composition>